<!--
 * @Author: Leo.wang wanglizhigs@163.com
 * @Date: 2023-12-06 13:55:57
 * @LastEditors: Leo.wang wanglizhigs@163.com
 * @LastEditTime: 2024-01-29 23:43:01
 * @FilePath: /tuberculosis_screening_app/src/components/common/StatSheet.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div class="stat-sheet">
    
    <p class="stat-count">{{ count }} <small class="small">人</small></p>
    <p class="stat-title">{{ title }}</p>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue';

export default defineComponent({
  props: {
    title: {
      type: String,
      default: '',
    },
    count: {
      type: Number,
    },
    history: {
      type: Number,
    },
  },
  class: 'StatSheet',
});
</script>

<style lang="scss" scoped>
@import '@/styles/variables.scss';
.stat-sheet {
  text-align: center;
  line-height: 1.6;
  // color: $white-color;
  .stat-title {
    // color: map-get($text-colors, default);
    font-size: map-get($font-sizes, sm);
  }
  .stat-count {
    font-size: map-get($font-sizes, lg);
    line-height: 1.6;
  }
}
</style>

